package com.boolib.service.impl;

import com.boolib.commons.entity.ServerResponse;
import com.boolib.dao.ShopSkuMapper;
import com.boolib.pojo.ShopSku;
import com.boolib.service.IShopSkuService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
@Slf4j
@Service
public class ShopSkuServiceImpl  implements IShopSkuService {

    @Autowired
    private ShopSkuMapper shopSkuMapper;

    @Override
    public ServerResponse addSku(List<ShopSku> lists) {


      return ServerResponse.createBySuccessMessage(shopSkuMapper.insertCanNullList(lists)+"");
    }
}
